﻿using D.AT.Dto;
using Prism.Events;

namespace D.AT.Events
{
    public class AddChartEvent : PubSubEvent<AddChartEventArgs>
    {

    }

    public class AddChartEventArgs
    {
        public AddChartEventArgs(int index, JobAddRequestDto message, int totalCount, int successCount, int failCount, bool result = true, string error = null)
        {
            Index = index;
            Message = message;
            Error = error;
            Result = result;
            TotalCount = totalCount;
            SuccessCount = successCount;
            FailCount = failCount;
        }
        public JobAddRequestDto Message { get; private set; }
        public string Error { get; set; }
        public int TotalCount { get; private set; }
        public int SuccessCount { get; private set; }
        public int FailCount { get; private set; }
        public int Index { get; private set; }
        public bool Result { get; private set; }
    }
}
